﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MSH.TaskServer.Tasks;
using MSH.Common.Helpers;

namespace TaskServer
{
    class Program
    {
        static void Main(string[] args)
        {
            LogHelper.LogMessage("Program.Main(): version " + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version);
            LogHelper.LogMessage("Program.Main(): MSH TaskServer initializing");

            //NHibernateHelper.SchemaUpdate();

            try
            {

                /* Start periodic tasks */
                UserManagementTask userManagementTask = new UserManagementTask();
                WP7NotificationTask wp7NotificationTask = new WP7NotificationTask();
                FacebookTask facebookTask = new FacebookTask();
                FriendNotificationTask friendNotificationTask = new FriendNotificationTask();
                Console.ReadLine();

            }
            catch (Exception e)
            {
                Console.WriteLine("Program.Main(): An exception occurred: {0}", e.Message);  
                Console.ReadLine();            
            }

        }
    }
}
